import Layout from '@/module-dashboard/pages/layout'
const _import = require('@/router/import_' + process.env.NODE_ENV)

export default [
  {
    path: '/orderdmin',
    component: Layout,
    redirect: 'noredirect',
    name: '订单管理',
    meta: {
      title: '订单管理',
      icon: 'iconui--_3'
    },
    children: [
      {
        path: 'orderList1',
        component: _import('order/pages/order-list'),
        name: '配件订单',
        meta: {
          title: '配件订单'
        }
      },
      {
        path: 'orderList2',
        component: _import('order/pages/order-server'),
        name: '服务订单',
        meta: {
          title: '服务订单'
        }
      },
      {
        path: 'orderDetail/:orderId',
        component: _import('order/pages/order-detail'),
        name: '服务订单详情',
        hidden: true,
        meta: {
          title: '订单详情'
        }
      }
    ]
  }
]
